package com.xnyzc.lhy.common.component.didi;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 滴滴对接相关
 *
 * @Author: scootXin
 * @Date: 2019/4/19 9:52
 */
@Component
public class DiDiUrlConstant {

    /**
     * 请求didiAppId
     */
    public static String didiAppId;

    @Value("${global.didi.appId}")
    public void setDidiAppId(String appId) {
        didiAppId = appId;
    }

    /**
     * didi公钥
     */
    public static String didiSignReq;

    @Value("${global.didi.signReq}")
    public void setDidiSignReg(String signReq) {
        didiSignReq = signReq;
    }

    /**
     * didi秘钥
     */
    public static String didiSignPro;

    @Value("${global.didi.signPro}")
    public void setDidiSignPro(String signPro) {
        didiSignPro = signPro;
    }

    /**
     * 滴滴请求地址
     */
    public static String didiUrl;

    @Value("${global.didi.url}")
    public void setDidiUrl(String url) {
        didiUrl = url;
    }

    /**
     * 请求数据格式
     */
    public static String JSON_PARAM = "JSON";

    public static String X_WWW_FORM_URLENCODED = "FORM";

    /**
     * 绑定虚拟号固定值
     */
    public final static String BIND_PHONE = "bind";


    public static String ERRNO = "errno";

    public static String ERRMSG = "errmsg";

    /**
     * 滴滴请求url前缀(网关)
     */
    public final static String requestUrlPrefix = "/didi/v1/";

    /**
     * 滴滴请求url前缀(服务)
     */
    public final static String requestServiceUrlPrefix = "/oa/didi/";

    /**
     * 查询订单详情
     */
    public final static String ORDER_DETAIL_API = "/tripcloud/v1/agent/orderDetail";

    /**
     * 订单状态查询
     */
    public final static String ORDER_STATUS_API = "/tripcloud/v1/agent/orderStatus";

    /**
     * 司机位置同步
     */
    public final static String LOCATION_SYNC_API = "/tripcloud/v1/agent/locationSync";

    /**
     * 实时计价同步
     */
    public final static String REALTIME_FEE_API = "/tripcloud/v1/agent/realtimeFeeSync";

    /**
     * 司机状态同步
     */
    public final static String STATUS_CALL_BACK_API = "/tripcloud/v1/driver/statusCallback";

    /**
     * 司机抢单
     */
    public final static String STRIVE_CALL_BACK_API = "/tripcloud/v1/hermes/striveCallback";

    /**
     * 客服关单
     */
    public final static String CLOSE_ORDER_API = "/tripcloud/v1/driver/closeOrder";

    /**
     * 改价
     */
    public final static String CHANGE_PRICE_API = "/tripcloud/v1/agent/changePrice";

    /**
     * 免单接口
     */
    public final static String FREE_CHARGE_API = "/tripcloud/v1/agent/freeCharge";

    /**
     * 退款接口
     */
    public final static String BILL_REFUND_API = "/tripcloud/v1/agent/billRefund";

    /**
     * 退款查询接口
     */
    public final static String QUERY_REFUND_API = "/tripcloud/v1/agent/queryRefund";

    /**
     * 支付详情查询
     */
    public final static String GET_PAY_INFO_API = "/tripcloud/v1/agent/getPayInfo";

    /**
     * 乘客id查询
     */
    public final static String GET_OPEN_PID_API = "/tripcloud/v1/agent/getOpenPid";

    /**
     * 发票冲红回调
     */
    public final static String INVALID_NOTIFY_API = "/tripcloud/v1/agent/invalidNotify";

    /**
     * 解绑
     */
    public final static String UNBIND_PHONE_API = "/tripcloud/v1/agent/proxy/ark?act=unbindPhone";

    /**
     * 绑定虚拟号
     */
    public final static String BIND_PHONE_API = "/tripcloud/v1/agent/proxy/ark?act=bindPhone";

    /**
     * 工单处理
     */
    public final static String ARK_WORK_API = "/tripcloud/v1/agent/proxy/ark";

    /**
     * 下听订单实时账单
     */
    public final static String REAL_TIME_FEE_API = "/tripcloud/v1/passenger/pGetRealTimeFeeDetail";

    /**
     * 批量司机位置同步
     */
    public final static String MULTI_LOCATION_SYNC_API = "/tripcloud/v1/agent/multiLocationSync";

    /**
     * 绑定优惠券
     */
    public final static String BIND_COUPON_PHONE = "/tripcloud/v1/agent/bindCoupon";

}
